import request from "@/utils/request"
//获取司机列表数据
export const getdriveApi=(params)=> {
    return request({
        method:'get',
        url:'/driver/page',
        params
    })
}
//获取指定id的数据
export const getdetailApi=(id)=> {
    return request({
        url:`/driver/${id}`,
        method:'get'
    })
}
//搜索功能接口
export const search=(params)=>{
    return request ({
        url:"/business-hall/courier/page",
        method:'get',
        params
    })
}
//驾驶证信息
export const getdriveinfoApi=(id)=> {
    return request({
        method:'get',
        url:`/driverLicense/${id}`
    })
}
//修改用户信息
export const baocuninfoApi=(id,data)=> {
    return request({
        method:'put',
        url:`/driver/{id}`,
        data
    })
}
